public class Main {
 public static class Base{
  public static int a;
  static{
   System.out.println("父类静态代码块");
  }

  {
   System.out.println("父类实例代码块");
  }
  Base(){
   System.out.println("父类构造方法");
  }
 }
 public static class Test extends Base{
 static{
  System.out.println("子类静态代码块");
 }

 {
  System.out.println("子类实例代码块");
 }
 Test(){
  System.out.println("子类构造方法");
 }

  public static void main(String[] args) {
   Test test = new Test();

   System.out.println("==========");

   Test test1 = new Test();

  }
 }
}